package com.sunny.shop.repository;

import com.sunny.shop.model.GoodsOrder;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface GoodsOrderRepository extends JpaRepository<GoodsOrder, Long> {
    GoodsOrder findGoodsOrderByOrderSnAndUid(String order_sn, Long uid);

    List<GoodsOrder> findAllByUid(Long uid);
}
